package com.cictec.middleware.core.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "t_task_busfile")
public class BusFileTask implements Serializable {
	
	@Transient
	private String bufFilename;
	@Transient
	private String bufVersion;
	@Transient
	private String bufFileurl;
	@Transient
	private String bufCrc;
	@Transient
	private int bufFilesize;
	@Transient
	private int bfdOffset;
	@Transient
    private String Address;
	@Transient
    private String Port;
	@Transient
	private String bufFtpUrl;

	
    public String getAddress() {
		return Address;
	}

	public void setAddress(String address) {
		Address = address;
	}

	public String getPort() {
		return Port;
	}

	public void setPort(String port) {
		Port = port;
	}

	public String getBufFilename() {
		return bufFilename;
	}

	public void setBufFilename(String bufFilename) {
		this.bufFilename = bufFilename;
	}

	public String getBufVersion() {
		return bufVersion;
	}

	public void setBufVersion(String bufVersion) {
		this.bufVersion = bufVersion;
	}

	public String getBufFileurl() {
		return bufFileurl;
	}

	public void setBufFileurl(String bufFileurl) {
		this.bufFileurl = bufFileurl;
	}

	public String getBufCrc() {
		return bufCrc;
	}

	public void setBufCrc(String bufCrc) {
		this.bufCrc = bufCrc;
	}

	public int getBufFilesize() {
		return bufFilesize;
	}

	public void setBufFilesize(int bufFilesize) {
		this.bufFilesize = bufFilesize;
	}

	public int getBfdOffset() {
		return bfdOffset;
	}

	public void setBfdOffset(int bfdOffset) {
		this.bfdOffset = bfdOffset;
	}

	/**
     * 主键id
     */
    @Column(name = "bft_uuid")
    private String bftUuid;

    /**
     * 任务名称
     */
    @Column(name = "bft_name")
    private String bftName;

    /**
     * 任务类型(即时/预约)
     */
    @Column(name = "bft_type")
    private Integer bftType;

    /**
     * 预约升级时间
     */
    @Column(name = "bft_updatetime")
    private Date bftUpdatetime;

    /**
     * 升级文件名称
     */
    @Column(name = "bft_filename")
    private String bftFilename;

    /**
     * 升级车辆总数
     */
    @Column(name = "bft_allcount")
    private Integer bftAllcount;

    /**
     * 升级车辆失败数
     */
    @Column(name = "bft_fallcount")
    private Integer bftFallcount;

    /**
     * 创建时间
     */
    @Column(name = "bft_createtime")
    private Date bftCreatetime;

    /**
     * 文件id
     */
    @Column(name = "buf_uuid")
    private String bufUuid;

    /**
     * 更新类型(新增/覆盖)
     */
    @Column(name = "bft_udtype")
    private Integer bftUdtype;
    
    
//    @Column(name = "buf_ftpurl")

    
    @Column(name = "bfd_devtype")
	private String deviceModel;
    
    @Column(name = "bfd_uuid")
	private String bfdUuid;
    
    @Column(name = "bfd_status")
	private String bfdStatus;

    private Float persuccess;

    private static final long serialVersionUID = 1L;

    /**
     * 获取主键id
     *
     * @return bft_uuid - 主键id
     */
    public String getBftUuid() {
        return bftUuid;
    }

    /**
     * 设置主键id
     *
     * @param bftUuid 主键id
     */
    public void setBftUuid(String bftUuid) {
        this.bftUuid = bftUuid == null ? null : bftUuid.trim();
    }

    /**
     * 获取任务名称
     *
     * @return bft_name - 任务名称
     */
    public String getBftName() {
        return bftName;
    }

    /**
     * 设置任务名称
     *
     * @param bftName 任务名称
     */
    public void setBftName(String bftName) {
        this.bftName = bftName == null ? null : bftName.trim();
    }

    /**
     * 获取任务类型(即时/预约)
     *
     * @return bft_type - 任务类型(即时/预约)
     */
    public Integer getBftType() {
        return bftType;
    }

    /**
     * 设置任务类型(即时/预约)
     *
     * @param bftType 任务类型(即时/预约)
     */
    public void setBftType(Integer bftType) {
        this.bftType = bftType;
    }

    /**
     * 获取预约升级时间
     *
     * @return bft_updatetime - 预约升级时间
     */
    public Date getBftUpdatetime() {
        return bftUpdatetime;
    }

    /**
     * 设置预约升级时间
     *
     * @param bftUpdatetime 预约升级时间
     */
    public void setBftUpdatetime(Date bftUpdatetime) {
        this.bftUpdatetime = bftUpdatetime;
    }

    /**
     * 获取升级文件名称
     *
     * @return bft_filename - 升级文件名称
     */
    public String getBftFilename() {
        return bftFilename;
    }

    /**
     * 设置升级文件名称
     *
     * @param bftFilename 升级文件名称
     */
    public void setBftFilename(String bftFilename) {
        this.bftFilename = bftFilename == null ? null : bftFilename.trim();
    }

    /**
     * 获取升级车辆总数
     *
     * @return bft_allcount - 升级车辆总数
     */
    public Integer getBftAllcount() {
        return bftAllcount;
    }

    /**
     * 设置升级车辆总数
     *
     * @param bftAllcount 升级车辆总数
     */
    public void setBftAllcount(Integer bftAllcount) {
        this.bftAllcount = bftAllcount;
    }

    /**
     * 获取升级车辆失败数
     *
     * @return bft_fallcount - 升级车辆失败数
     */
    public Integer getBftFallcount() {
        return bftFallcount;
    }

    /**
     * 设置升级车辆失败数
     *
     * @param bftFallcount 升级车辆失败数
     */
    public void setBftFallcount(Integer bftFallcount) {
        this.bftFallcount = bftFallcount;
    }

    /**
     * 获取创建时间
     *
     * @return bft_createtime - 创建时间
     */
    public Date getBftCreatetime() {
        return bftCreatetime;
    }

    /**
     * 设置创建时间
     *
     * @param bftCreatetime 创建时间
     */
    public void setBftCreatetime(Date bftCreatetime) {
        this.bftCreatetime = bftCreatetime;
    }

    /**
     * 获取文件id
     *
     * @return buf_uuid - 文件id
     */
    public String getBufUuid() {
        return bufUuid;
    }

    /**
     * 设置文件id
     *
     * @param bufUuid 文件id
     */
    public void setBufUuid(String bufUuid) {
        this.bufUuid = bufUuid == null ? null : bufUuid.trim();
    }

    /**
     * 获取更新类型(新增/覆盖)
     *
     * @return bft_udtype - 更新类型(新增/覆盖)
     */
    public Integer getBftUdtype() {
        return bftUdtype;
    }

    /**
     * 设置更新类型(新增/覆盖)
     *
     * @param bftUdtype 更新类型(新增/覆盖)
     */
    public void setBftUdtype(Integer bftUdtype) {
        this.bftUdtype = bftUdtype;
    }

    /**
     * @return persuccess
     */
    public Float getPersuccess() {
        return persuccess;
    }

    /**
     * @param persuccess
     */
    public void setPersuccess(Float persuccess) {
        this.persuccess = persuccess;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bftUuid=").append(bftUuid);
        sb.append(", bftName=").append(bftName);
        sb.append(", bftType=").append(bftType);
        sb.append(", bftUpdatetime=").append(bftUpdatetime);
        sb.append(", bftFilename=").append(bftFilename);
        sb.append(", bftAllcount=").append(bftAllcount);
        sb.append(", bftFallcount=").append(bftFallcount);
        sb.append(", bftCreatetime=").append(bftCreatetime);
        sb.append(", bufUuid=").append(bufUuid);
        sb.append(", bftUdtype=").append(bftUdtype);
        sb.append(", bfdUuid=").append(bfdUuid);
        sb.append(", deviceModel=").append(deviceModel);
        sb.append(", bufFtpUrl=").append(bufFtpUrl);
        sb.append(", persuccess=").append(persuccess);
        sb.append("]");
        return sb.toString();
    }

	public String getBufFtpUrl() {
		return bufFtpUrl;
	}

	public void setBufFtpUrl(String bufFtpUrl) {
		this.bufFtpUrl = bufFtpUrl;
	}

	public String getDeviceModel() {
		return deviceModel;
	}

	public void setDeviceModel(String deviceModel) {
		this.deviceModel = deviceModel;
	}

	public String getBfdUuid() {
		return bfdUuid;
	}

	public void setBfdUuid(String bfdUuid) {
		this.bfdUuid = bfdUuid;
	}

	public String getBfdStatus() {
		return bfdStatus;
	}

	public void setBfdStatus(String bfdStatus) {
		this.bfdStatus = bfdStatus;
	}
}